package com.mes.biz.domain;

import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.List;
import javax.validation.constraints.NotBlank;

import com.mes.common.core.domain.BaseEntity;
import lombok.Data;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import com.mes.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 生产工序对象 biz_production_process
 * @author hwg
 * @email hwg
 * @date 2023-03-30
 */
@Data
public class BizProductionProcess extends BaseEntity<BizProductionProcess>
{
    private static final long serialVersionUID = 1L;

    /** 工序名称 */
    @Excel(name = "工序名称")
    @NotBlank(message = "工序名称不允许为空")
    @LogField
    @FieldRemark(name = "工序名称",field = "processName")
    private String processName;

    /** 工序编号 */
    @Excel(name = "工序编号")
    @NotBlank(message = "工序编号不允许为空")
    @LogField
    @FieldRemark(name = "工序编号",field = "processCode")
    private String processCode;

    /** 部门 */
    @Excel(name = "部门")
    @NotBlank(message = "部门不允许为空")
    @LogField
    @FieldRemark(name = "部门",field = "deptId")
    private String deptId;

    private String deptIdName;
    /** 准备工时 */
    @Excel(name = "准备工时")
    @LogField
    @FieldRemark(name = "准备工时",field = "preparationHours")
    private BigDecimal preparationHours;

    /** 标准工时 */
    @Excel(name = "标准工时")
    @LogField
    @FieldRemark(name = "标准工时",field = "standardHours")
    private BigDecimal standardHours;

    /** 单位工资 */
    @Excel(name = "单位工资")
    @LogField
    @FieldRemark(name = "单位工资",field = "unitSalary")
    private BigDecimal unitSalary;

    /** 排序 */
    @Excel(name = "排序")
    @LogField
    @FieldRemark(name = "排序",field = "sortNumber")
    private Integer sortNumber;

    /** 租户id */
    private String tenantId;

    private String planId;

    private List<String> excludeSelectedProcessIds;

    private boolean flag;
}
